<%-- 
    Document   : testlist
    Created on : 2011-8-9, 18:33:32
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>testlist Page</title>
    </head>
    <body>
        <h1>Hello testlist!,this page will take list params from controller action</h1>
        <table> 
            <tr> 
                <td>姓名 
                </td> 
                <td>年龄 
                </td> 
            </tr> 
            <!-- loop begin -->             
            <c:forEach var="student" items="${students}" > 
                <tr> 
                    <td> <c:out value="${student.name}" default="wang"/> 
                </td> 

                <td> 
                <c:out value="${student.age}" default="wang"/> 
                </td> 
                </tr> 
            </c:forEach> 
            <!-- loop end --> 
        </table> 
    </body>
</html>
